Contents
How Do I?

Add Snippet to my add-in menu in VB4?

Paste code snippets from Snippet to my VB code window?

Add a new code snippet to the library?

Add a new Type to the Snippet list?

Find an existing snippet?

Refresh the snippet listings after a Find is performed?

Print a hardcopy of a snippet?

Make changes to an existing snippet?

Change the text Color of a snippet?

Change the Font size of a snippet?

Make the text Bold in a snippet?

Make the text Underlined in a snippet?

Make the text appear in Italics?

Return to the main screen from the New Code screen?

Undo changes made to an entry on the New Code screen?

Cut/Copy/Paste from the New Code screen?

Make Snippet automatically Expand/Collapse items when it loads?

Exit Snippet?

Order Snippet?

For Help on Help, Press F1


Add Snippet to my add-in menu in VB4?

From the Visual Basic Add-Ins menu, select Add-In Manager.

The Add-In Manager will display a list of the available add-ins to choose from.  If you do not see Snippet.clsAddIn here, you will need to execute Snippet.exe and then try again.

Select Snippet.clsAddIn and click OK.  When you click on the Add-Ins menu option now, you should see a submenu for Snippet.

To run Snippet, click on the Snippet submenu.


Add a new Type to the Snippet list?

If a snippet Type does not exist in the Type dropdown list on the New Code screen, you may add a new Type by simply typing in the new Type name in the Type field.  When you select the Save function, the new type will be added to the list.


Paste code snippets from Snippet to my VB code window?

When Snippet is loaded, it automatically shows the list of Types and snippet names in the tree on the left side of the screen. To display the contents of the snippet, simply select the snippet name by:

1.	pointing to the name with the mouse and clicking with the left mouse button.

2.	use the Arrow keys to move around the list of snippets.

Once the code is displayed in the text area on the right portion of the screen, choose the Edit menu option and then Paste to VB submenu (or use the Paste to VB short-cut toolbar button).

If the Display VBPrint Screen option is checked under the Options/Paste Defaults menu, an option screen will be displayed to allow the user to select what to paste into the VB window - code only, description only, or both code and description.  The print default may be changed by selecting the desired option under the Options/Paste Defaults menu.  If the Display VBPrint Screen is not selected, the option screen will not be displayed - the selected option (code, description, or both) will be immediately pasted into the VB window.


Add a new code snippet to the library
Add a new code snippet to the library?

You can create your own snippets and add them to Snippet library.  Click on Snippets File menu and select the New submenu (or click on the toolbar button with the blank sheet).

Enter the name you want to call the snippet and select the snippet Type from the dropdown list.  The snippet type is the high-level name that the snippet appears under on the tree list.  If a snippet type is entered that does not exist in the dropdown list, the new snippet type will be added and a new high-level created in the tree list.  See Add a new Type to the Snippet list?

Type in the description of the code snippet - just a few files telling what function the snippet performs.  When you leave the description text, the text will automatically be formatted with comment characters and a block of asterisks (*).  To ensure that the code/descriptions are formatted correctly when pasted to Visual Basic, it is best to place any API or DLL declarations in the description section after it has automatically formatted the comments.

Type in the code for the snippet or use the Edit/Paste menu if pasting from code copied to the clipboard from the Visual Basic code window.

Once the code  and description are entered, you can use the format functions available for the New Code screen to liven up your text in the Description and the Code windows.


Find an existing snippet?

To find an existing snippet, a full text search is performed on the code portion of the snippet or the description portion of the snippet or a combination of both the code and description.

From the Library screen, select the Edit menu and the Find submenu (or click on the toolbar button with the binoculars).  The Find screen will be displayed for entry of the search criteria.

You may enter up to 20 words to be used in the search - separating them with a comma.

You may also specify whether to use AND or OR to connect the compound SQL statements when you are searching with more than one keyword.

You can choose to have the search performed only on the code portion of the snippet or only on the  description portion of the snippet or to search both the code and the description.

Click on the Begin command button to perform the search using the keywords entered.

Click on the Cancel command to return to the Library screen, without performing the search.

When the snippets are found that contain the entered keywords, the tree list will be rebuilt using only the snippet names that meet the search criteria, and the Find screen will be removed.

To redisplay all snippets, see Refresh the snippet listings after a Find is performed .


Refresh the snippet listings after a Find is performed?

When a Find is performed, the tree list will contain only the snippets that met the search criteria.  In order to return the tree list to the full listing, select the Edit menu and the Refresh submenu.

The tree list will be refilled with the complete list of snippets.


Print a hardcopy of a snippet?

A copy of the currently selected snippet can be printed to the default Windows printer by selecting File from the menu and the Print submenu (or click on the toolbar button with the printer on it).  The print utility uses the program assocatied with .RTF files for printing.

If an error occurs while attempting to Print, go to File Manager in the File/Associate menu and associate the .RTF extension with the desired program (MS Word, if you have no preferences).  Also, associate the action Print with the selection of MS Word in the Add New Type or Change Type, depending on whether you already have .RTF associated with Word or not.


Make changes to an existing snippet?

To make changes to an existing snippet, you must first select and display the snippet on the New Code screen.  To do this, point with the mouse to the name of the snippet you would like to change and double-click with the left mouse button or select the File menu and the Select submenu.  The description and code for the snippet will be displayed in the New Code screen.

Once the snippet is displayed on the New Code screen, make the desired changes and then

select File menu and Save submenu (or click on the toolbar button with the diskette symbol).


Change the text Color of a snippet?

You can change the color of the text in the Description text or the Code text on the New Code screen.  Highlight the text that you want to change.  Select the Format menu and Color submenu (or click on the toolbar button with the pen drawing a C).

When the color palette is displayed, select the color you want the  text to be and click on the OK command button.


Change the Font size of a snippet?

You can change the format of the text in the Description text or the Code text on the New Code screen.  Highlight the text that you want to change.  Select the Format menu and Font submenu (or click on the toolbar button with the pencil writing a cursive e).

When the font dialog is displayed, select the font name and size you want the  text to be and click on the OK command button.


Make the text Bold in a snippet?

You can change the text in the Description text or the Code text to be Bold on the New Code screen.  Highlight the text that you want to change.  Select the Format menu and Bold submenu (or click on the toolbar button with the B).

If the selected text is not bold, it will be changed to bold.  If it is bold, it will be un-bolded.


Make the text Underlined in a snippet?

You can change the text in the Description text or the Code text to be Underlined on the New Code screen.  Highlight the text that you want to change.  Select the Format menu and Underline submenu (or click on the toolbar button with the U).

If the selected text is not underlined, it will be changed to underlined.  If it is underlined, the underline will be removed.


Make the text appear in Italics?

You can change the text in the Description text or the Code text to be in Italics on the New Code screen.  Highlight the text that you want to change.  Select the Format menu and Italics submenu (or click on the toolbar button with the I).

If the selected text is not in italics, it will be changed to italics.  If it is italics, the italics will be removed.


Return to the main screen from the New Code screen?

To return to the main screen, select the File menu and the Back submenu or click on the toolbar button with the left-pointing arrow.


Undo changes made to an entry on the New Code screen?

To undo changes made to the Description Text or the Code text, select the Edit menu and Undo submenu.


Cut/Copy/Paste from the New Code screen

You can cut/copy from the Description text and the Code text on the New Code screen and you can paste to the Description text or the Code text on the New Code screen.  Use the Format menu and the Cut/Copy/Paste submenus (or click on the standard toolbar buttons).


Make Snippet automatically Expand/Collapse items when it loads
Make Snippet automatically Expand/Collapse items when it loads?

Snippet can remember whether you like to view the list of Types (Collapsed) or the list of Types with the associated snippets (Expanded).

To toggle between the Collapsed view and the Expanded view, click on the Options menu and the Expand submenu.  (If the Items are expanded, the Expand submenu will have a checkmark next to it - if they are already collapsed, the checkmark will not appear.)


Take a shortcut to the snippet I viewed last time I used Snippet?

Snippet will save a reference to the snippet that you viewed the last time Snippet was ran.  For a shortcut path to this snippet, click on the Options menu and the submenu under the Expand submenu will have the name of the last used snippet.  Click on this name and the code for this snippet will immediately be displayed.


Exit Snippet?

To exit Snippet, select the File menu and Exit submenu (or click on the toolbar button with the X on it).


Order Snippet?

For the full working version of Snippet with even more neat & cool snippets, send $20 to:

Snippet

c/o Terre Wells

 	1901 Winners Circle

Lawrenceville, GA  30243